<template>
  <div>
    App
    <!-- 
      所有给组件绑定的事件，都是自定义事件
      如果希望给组件绑定DOM事件，需要加上事件修饰符.native
     -->
    <Child @click="handleClick" />
    <Child @click.native="handleClick" />
  </div>
</template>

<script>
import Child from "./Child.vue";

export default {
  name: "App",
  components: {
    Child,
  },
  methods: {
    handleClick() {
      console.log("hello");
    },
  },
};
</script>

<style></style>
